const puppeteer = require('puppeteer')
async function run(){
  const browser= await puppeteer.launch({ headless: false, defaultViewport: { width: 1366, height: 720 } })
  const page = await browser.newPage()
  await page.goto('http://www.baidu.com')
  const  input_area= await page.$("#kw")
  await input_area.type("Hello World")
  await (await page.$("#su")).click()
}
run()